package com.black.cat.jvm.instructions.loads.aload;


import com.black.cat.jvm.instructions.base.InstructionNoOperands;
import com.black.cat.jvm.rtda.Frame;
import com.black.cat.jvm.rtda.JObject;

/**
 * @Author blackcat
 * @create 2021/8/13 14:15
 * @version: 1.0
 * @description:将第3个引用类型本地变量推送到栈顶
 */
public class ALOAD_2 extends InstructionNoOperands {

    @Override
    public void execute(Frame frame) {
        JObject ref = frame.localVars().getRef(2);
        frame.operandStack().pushRef(ref);
    }

}

